//***********************************************************************
//		PP2_8.java		Author:GK
//
//		Convert the hours,mins,seconds into seconds.
//***********************************************************************

import java.util.Scanner;

public class PP2_8
{
	public static void main(String[] args)
	{
	int hours,minutes,seconds;
	double result;

	Scanner scan = new Scanner(System.in);

	System.out.println("请输入小时数、分钟数、秒数：");
	hours = scan.nextInt();
	minutes = scan.nextInt();
	seconds = scan.nextInt();

	result = hours * 3600 + minutes * 60 + seconds;

	System.out.println("结果是：" + result);
	}
}

